package com.hao.wms.service.impl;

import com.hao.wms.dao.ICatDao;
import com.hao.wms.domain.Cat;
import com.hao.wms.query.PageResult;
import com.hao.wms.query.QueryObject;
import com.hao.wms.service.ICatService;

import java.util.List;

public class CatServiceImpl implements ICatService {
	private ICatDao dao;
	

	public void setDao(ICatDao dao) {
		this.dao = dao;
	}

	@Override
	public void save(Cat cat) {
		dao.save(cat);

	}

	@Override
	public void update(Cat cat) {
		dao.update(cat);

	}

	@Override
	public void delete(Cat cat) {
		dao.delete(cat);

	}

	@Override
	public Cat get(Long id) {
		return dao.get(id);
	}

	@Override
	public List<Cat> list() {
		return dao.list();
	}

	@Override
	public PageResult query(QueryObject qo) {
		return dao.query(qo);
	}
	
	

}
